<template>
	<view class="index_wrap">
		<!-- <view class="bg-white pt-2 pb-2 pl-4 pr-4">
			<u-search :show-action="true" action-text="搜索" @custom="search(0)" v-model="result"
				placeholder="请搜索档案资料名称"></u-search>
		</view> -->

		<view class="search">
			<input class="search-input" v-model="result" placeholder='请搜索档案资料名称' />
			<view class="btn">
				<text style="color: #FFFFFF;" @click="search(0)">搜索</text>
			</view>
		</view>
		<view class="repair-wrap">
			<view style="border-top: 1px solid #F7F8F9;background-color: #FFFFFF;margin-top: 10px;">
				<view style="width: 85%;margin:0 auto;" v-for="(item, index) in nameList" id="appList" :key="index">
					<view class="header-li" @click="newly('/pages/community/communityDetail',item.name)">
						<view>
							<view style="display: flex;">
								<image style="width: 25px;height: 24px;margin-top: 17px;"
									src="../../static/image/community.png"></image>
								<view style="margin-left: 12px;font-size: 19px;font-weight: 550;">{{item.name}}</view>
							</view>
							<image style="width: 10px;height: 17px;float: right; margin-top: -34px;"
								src="../../static/image/right.png" mode=""></image>
						</view>
					</view>



				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				nameList: [{
						text: "制度",
						name: "设计资料"
					},
					{
						text: "范本",
						name: "施工资料"
					},
					{
						text: "文件",
						name: "房屋资料"
					},
					{
						text: "设备",
						name: "设备设施资料"
					},
					{
						text: "设备",
						name: "管线资料"
					},
					{
						text: "基建",
						name: "绿化资料"
					},
					{
						text: "函件",
						name: "审批资料"
					},
					{
						text: "我的",
						name: "证件资料"
					},
					{
						text: "合同",
						name: "其他资料"
					}
				],
				index: 0,
				type: 1,
				ruleForm: {
					renType: null,
				},
				indexList: true,
				housingFlag: false,
				hourseList: null,
				hourseStr: null,
				hourseNum: 0, //选择第几个房间,
				bol: false, //弹窗
				PopupList: null,
				hourseSting: null,
				areabuildfile_type: this.areabuildfile_type,
				result: null,
			}
		},
		onLoad() {
			// this.bol = !this.bol
		},
		onShow() {

		},
		onPullDownRefresh() {
			uni.stopPullDownRefresh()
		},
		methods: {
			checked(index) {
				this.isActive = index
			},
			newly(url, typeName) {
				uni.navigateTo({
					url: url + '?typeName=' + typeName
				})
			},
			shouList() {
				this.indexList = !this.indexList
			},
			search() {
				if (this.result == null || this.result == '') {
					return
				}
				uni.navigateTo({
					url: '/pages/community/searchIndex' + '?result=' + this.result
				});
			},
		}
	}
</script>

<style scoped>
	.title {
		font-size: 18px;
		font-family: PingFangSC-Medium, PingFang SC;
		font-weight: bold;
		font-weight: 500;
		color: #333333;
		line-height: 41px;
		position: relative;
	}

	.title_btm {
		position: absolute;
		width: 79px;
		height: 6rpx;
		// background: #578ae2;
		opacity: 0.6;
		border-radius: 6px;
		bottom: 4rpx;
		left: 6rpx;
		background: linear-gradient(70deg, #447A05, rgba(69, 124, 5, 0.1));

	}

	.u-m-b-20 {
		margin-bottom: 20px !important;
	}

	.rect {
		width: 80%;
		height: auto;
		background-color: #FFFFFF;
	}

	.index_wrap {
		width: 100vw;
		height: auto;
		overflow: hidden;
	}

	.index_wrap .a {
		width: calc(100vw - 60rpx);
		margin: 0 auto 20rpx;
		height: 36vw;
		border-radius: 6px;
		overflow: hidden;
	}

	.index_wrap .a .swiper_img {
		width: 100%;
	}

	.index_wrap .index_btom {
		width: 100vw;
		height: auto;
		overflow: hidden;
		background: #FAFAFA;
	}

	.index_wrap .index_resi_quar {
		width: 100vw;
		height: 614rpx;
		position: relative;
	}

	.index_wrap .index_resi_quar .index_resi_quar_box {
		width: 100vw;
		height: 120rpx;
		background: #F1F1F1;
	}

	.index_wrap .index_resi_quar .index_resi_quar_cont {
		width: calc(100% - 60rpx);
		height: calc(100% - 60rpx);
		position: absolute;
		top: 20rpx;
		left: 30rpx;
		background: #fff;
		border-radius: 12rpx;
		box-shadow: 0px 3px 20px 0px rgba(51, 51, 51, 0.1);
	}

	.index_wrap .index_resi_quar .index_resi_quar_cont .index_resi_quar_cont_title {
		width: calc(100% - 40rpx);
		height: 90rpx;
		margin: auto;
		border-bottom: 1px solid #ddd;
		font-size: 36rpx;
		font-weight: 550;
		color: #333;
		line-height: 100rpx;
	}

	.index_wrap .index_resi_quar .index_resi_quar_cont .index_resi_quar_cont_title .index_resi_quar_cont_title_right {
		font-size: 24rpx;
		color: #2986FF;
		height: 28rpx;
		float: right;
		margin: 6rpx 20rpx 0 0;
	}

	.index_wrap .index_btom .index_resi_quar .index_resi_quar_cont .index_resi_quar_cont_cent {
		width: 100%;
		height: calc(100% - 91rpx);
		overflow: hidden;
	}

	.index_wrap .index_btom .index_resi_quar .index_resi_quar_cont .index_resi_quar_cont_cent .index_resi_quar_cont_cent_txt {
		width: 100%;
		height: auto;
		text-align: center;
		margin: 90rpx 0 0;
	}

	.index_wrap .index_btom .index_resi_quar .index_resi_quar_cont .index_resi_quar_cont_cent .index_resi_quar_cont_cent_btn {
		width: 370rpx;
		height: 90rpx;
		margin: 40rpx auto 0;
	}

	.index_wrap .index_resi_quar .index_resi_quar_cont .index_resi_quar_cont_cent .index_resi_quar_cont_cent_btn button {
		width: 100%;
		height: 100%;
		background: #F9A832;
		line-height: 90rpx;
		border-radius: 50rpx;
	}

	.index_wrap.index_resi_quar2 {
		width: 100%;
		height: auto;
		min-height: 60rpx;
		background: #FBFBFB;
	}

	.index_wrap .index_resi_quar2 .index_resi_quar2_gg {
		width: calc(100% - 60rpx);
		height: 250rpx;
		margin: 60rpx auto 60rpx;
	}

	.index_wrap .index_resi_quar2 .index_resi_quar2_gg image {
		width: 100%;
		height: 100%;
	}

	.repair-wrap {
		width: 100%;
		min-height: 100vh;
		height: auto;
		background: #f4f4f4;
		overflow: hidden;

		.repair-box {
			background: #fff;

			.repair-titel {
				height: 44rpx;
				line-height: 44rpx;

				.repair-titel-l {
					float: left;
				}

				.repair-titel-r {
					float: right;
					color: #999;
				}
			}

			.repair-6 {
				color: #666;
			}
		}
	}

	.header-li {
		// display: flex;
		// align-items: center;
		font-family: PingFangSC-Medium, PingFang SC;
		font-weight: 500;
		line-height: 58px;
		color: #333333;
		border-bottom: 1rpx solid #EEEEEE;
		padding: 8rpx 0;
	}

	.header-li i {
		width: 6px;
		height: 13px;
		background: linear-gradient(180deg, #76D904 0%, #417505 100%);
		border-radius: 4px;
		display: inline-block;
		vertical-align: middle;
		margin-top: 18px;
	}

	.header-name {
		width: 186rpx;
	}

	.images {
		width: 6px;
		height: 8px;

	}

	.images1 {
		width: 6px;
		height: 8px;

	}

	.images2 {
		width: 6px;
		height: 8px;

	}

	.images3 {
		width: 6px;
		height: 8px;

	}

	.search {
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 28rpx;
		color: #3d7fff;
		height: 100rpx;
		border-bottom: 1rpx solid #eeeeee;
		width: 100%;
		padding-left: 27px;
		padding-right: 31px;
		// position: fixed;
		z-index: 20;
		background: #FFFFFF;

		.search-clear {
			width: 36rpx;
			height: 36rpx;
			position: absolute;
			left: 271px;
			top: 50%;
			transform: translateY(-50%);
		}

		.search-input {
			width: 312px;
			height: 66rpx;
			background: #f0f2f5;
			border-radius: 33rpx;
			line-height: 66rpx;
			font-size: 13px;
			padding: 0 33rpx;
			color: #333333;
			box-sizing: border-box;
		}

		.btn {
			width: 21%;
			line-height: 33px;
			// border: 1px solid red;
			border: 1px solid linear-gradient(180deg, #76D904 0%, #417505 100%);
			border-radius: 18px;
			text-align: center;
			margin-left: -43px;
			background: linear-gradient(180deg, #76D904 0%, #417505 100%);
		}
	}
</style>